<template>
  <div id="div">
    <router-view />
    <a-button @click="getall">获取所有题目</a-button>
  </div>
</template>

<script lang="ts" setup>
import { QuestionControllerService } from "../../generated/services/QuestionControllerService";
async function getall() {
  await QuestionControllerService.listQuestionByPageUsingPost({}).then(
    (res) => {
      console.log(res);
    }
  );
}
</script>

<style scoped>
#div {
  background: #fff;
  padding: 0px;
  minheight: 100px;
}
</style>
